#include <iostream>
#include <string>

using namespace std;

void ConstArrayTest()
{
	const int *pcia = new const int[10]; // without initialization
	const int *pcia2 = new const int[10](); // all items initialized to 0

	const string *pcsa = new const string[10]; // For class type, call the default constructor
	const string *pcsa2 = new const string[10]();
	// const string *pcsa3 = new const string[10]("a"); // IntelliSense: a new-initializer may not be specified for an array; Error C2075: 'Target of operator new()' : array initialization needs curly braces



	// *(pcia + 2) = 5; // IntelliSense: expression must be a modifiable lvalue
	int *pcia3 = new int[1]();
	pcia = pcia3;
}